<div class="pagination">
  <?php if ($pager->haveToPaginate()): ?>
    <div class="pagination-page">
      <a href="javascript:$(this).TableRequestsHandler({page:'<?php echo $pager->getFirstPage(); ?>'})">|<</a>    
    </div>

    <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
    <div class="pagination-page">
      <?php if($pager->getPage() == $page): echo $page; else: ?>
        <a href="javascript:$(this).TableRequestsHandler({page:'<?php echo $page; ?>'})"><?php echo $page; ?></a>
      <?php endif; ?>
    </div>
    <?php endforeach ?>

    <div class="pagination-page">
      <a href="javascript:$(this).TableRequestsHandler({page:'<?php echo $pager->getLastPage(); ?>'})">>|</a> 
    </div>
  <?php endif ?>  
  <div class="pagination-results-number">
    <?php echo __('All results: ') . $pager->getNbResults(); ?>
  </div>
  <script type="text/javascript">currentPage = <?php echo $pager->getPage(); ?></script>
</div>